package com.imooc;

public class Test3 {
	private String name = "imooc";
	int age = 20;
	
	public class Inner {
		String name = "爱慕课";
		public void show() {
			System.out.println("外部类的name：" + Test3.this.name);
			System.out.println("内部类中的name：" + name);
			System.out.println("外部类中的age：" + age);
		}
	}
	
	public static void main(String[] args) {
		Test3 t = new Test3();
		Inner i = t.new Inner();
		i.show();
	}
}
